﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DreamHome.Models
{
    class Staff
    {
       public String StaffNo       { get; set;}
       public String FName         { get; set;}
       public String LName         { get; set;}
       public String Position      { get; set;}
       public String Sex           { get; set;}
       public DateTime DateOfBirth { get; set;}
       public String Salary        { get; set;}
       public String BranchNo      { get; set;}
       public String IsValid       { get; set;}

        public Staff(String staffNo, String fName, String lName, String position, String sex, DateTime dateOfBirth, String salary, String branchNo, bool isValid)
        {
        //    this.Id          = Guid.NewGuid();
            this.StaffNo = staffNo;
            this.FName = fName;
            this.LName = lName;
            this.Position = position;
            this.Sex = sex;
            this.DateOfBirth = dateOfBirth;
            this.Salary = salary;
            this.BranchNo = branchNo;
            if (isValid == true) { this.IsValid = "Yes"; } else { this.IsValid = "No!"; };
        }
        public Staff()
        {

        }
    }
}
